/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2024-02-24 16:16:22
 * @LastEditTime: 2024-02-24 16:25:59
 * @FilePath: /react-vite-admin/src/components/spinner/index.tsx
 */
import { Spin } from 'antd';
import styles from './index.module.scss'

export default function Spinner(props: { text?: string }) {
    return (
        <div className={`${styles.spinner} flex-col`}>
            <Spin tip={props.text || 'Loading...'}>
                <span></span>
            </Spin>
        </div>
    )
}